import axios from '@/api/index'
// 购物车列表
function cartList (data) {
  return axios({
    url: '/cart/cartList',
    method: 'GET',
    data
  })
}
// 下单
function submitAction (data) {
  return axios({
    url: '/order/submitAction',
    method: 'POST',
    data
  })
}

function deleteAction (data) {
  return axios({
    url: 'cart/deleteAction',
    method: 'GET',
    data
  })
}
export { cartList, submitAction, deleteAction }
